﻿#ifndef SYSSUBPROTOCOLEDITOR_H
#define SYSSUBPROTOCOLEDITOR_H

#include "systemparamdef.h"

namespace Ui {
class SysSubProtocolEditor;
}

class SysSubProtocolEditor : public QWidget
{
    Q_OBJECT

public:
    explicit SysSubProtocolEditor(QWidget *parent = nullptr);
    ~SysSubProtocolEditor();

    void InitSysSubProtocolEditor(int nType,int nId = -1,int nMsgType = 0,const QString sMsg = "");

signals:
    void on_CreateSysSubProtocol(int,const QString,int);   //新建系统协议信号
    void on_EditorSysSubProtocol(int,const QString,int,int);    //编辑系统协议信号

private slots:
    void on_QuitBtn_clicked();
    void on_EnterBtn_clicked();
private:
    Ui::SysSubProtocolEditor *ui;
    int nOldSubId;
    int nEditType;
};

#endif // SYSSUBPROTOCOLEDITOR_H
